const Router = require("koa-router");
const router = new Router({ prefix: "/classify" });
const { auth, hasAdminPermission } = require("../middleware/auth.middleware");
const { getClassify,addClassify,updateClassify,deleteClassify } = require("../controller/classify/classify.controller");

router.get("/get-classify", getClassify);
router.post("/add-classify", auth, hasAdminPermission, addClassify);
router.put("/update-classify", auth, hasAdminPermission, updateClassify);
router.delete("/delete-classify", auth, hasAdminPermission, deleteClassify);
module.exports = router;
